<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnChatGlobalIdInTaskWorkOrder extends AbstractMigration
{
    public function up()
    {
        $this->table('task_work_order')
            ->addColumn('chat_global_id', 'char', ['default' => '', 'limit' => 36, 'comment' => '全局唯一ID（uuid），一对一规则是2&3，小的user_id在前面。其他均为uuid'])
            ->save();
    }

    public function down()
    {
        $this->table('task_work_order')
            ->removeColumn('chat_global_id')
            ->save();
    }
}
